/*
* ECARX Technology Limited is the owner of the copyright and the trade secret of this software.
* Without permission, no one has the right to obtain, disclose or use this software in any way.
*/

package android.content.pm;

import android.content.Context;
import android.content.Intent;
import android.content.res.Resources;
import android.graphics.drawable.Drawable;
import android.util.AndroidException;

import java.util.List;


public abstract class PackageManager {

    public static final int PERMISSION_GRANTED = 0;
    public static final int GET_META_DATA  = 0x00000080;
    public static final int GET_UNINSTALLED_PACKAGES = 0x00002000;

    public Resources getResourcesForApplicationAsUser(String appPackageName, int userId) throws NameNotFoundException{
        return null;
    }

    public PackageInfo getPackageInfo(String packageName, int flags){
        return null;
    }

    public List<ResolveInfo> queryIntentActivities(Intent intent, int flags){
        return null;
    }

    public Drawable getApplicationIcon(ApplicationInfo info){
        return null;
    }

    public abstract Drawable getApplicationIcon(String packageName) throws NameNotFoundException;

    public ApplicationInfo getApplicationInfo(String packageName, int flags) throws NameNotFoundException{
        return null;
    }

    public abstract Context createPackageContext(String packageName, int flags) throws PackageManager.NameNotFoundException;




    public static class NameNotFoundException extends AndroidException {
        public NameNotFoundException() {
        }

        public NameNotFoundException(String name) {
            super(name);
        }
    }
}
